import Layout from '@/pages/public/layout' // 公共部分

const school = [{
  path: '/school',
  component: Layout,
  children: [{
    path: 'index',
    component: () => import('@/pages/school/index.vue'),
    meta: {
      title: '机构列表',
      permission: 'school.list'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/school/create.vue'),
    meta: {
      title: '新建机构',
      permission: 'school.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/school/edit.vue'),
    meta: {
      title: '编辑机构'
    }
  }, {
    path: 'waiting',
    component: () => import('@/pages/school/waiting/index.vue'),
    meta: {
      title: '待审机构',
      permission: 'school.examine'
    }
  }, {
    path: 'waiting/:id/examine',
    component: () => import('@/pages/school/waiting/examine.vue'),
    meta: {
      title: '审核机构',
      permission: 'school.examine'
    }
  }, {
    path: 'domain',
    component: () => import('@/pages/school/domain/index.vue'),
    meta: {
      title: '机构域名',
      permission: 'school.domain'
    }
  }]
}]

export default school
